package nc.ui.arap.newgeneralledgerquery;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import nc.ui.arap.termendtransact.RebuildArapBalanceDlg;
import nc.ui.pub.beans.UIDialog;

public class BalanceReCalcAction extends AbstractAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2093306659650286681L;
	
	private NewGenLedgerQuery generalPane;
	
	public BalanceReCalcAction(NewGenLedgerQuery generalPane) {
		this.generalPane = generalPane;
	}

	public void actionPerformed(ActionEvent e) {
		if( new RebuildArapBalanceDlg(generalPane, getSfbz()).showModal() == UIDialog.ID_OK ){

		}
	}

	private String getSfbz() {
		return "20060502".equals(generalPane.getNote()) ? "Ys" : "Yf";
	}

}
